<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> API Reference Documentation
        - Class: Unique</title>
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta http-equiv="imagetoolbar" content="no" />
    <link href="css/default.css" rel="stylesheet" type="text/css" />
    <link href="css/pygments.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="page">
        <div id="header">
            <h1> API Reference</h1>
        </div>
        <div id="browser">
            <div class="browser-section">
                <h2>Module Index</h2>
                <ul>
                    <li>
                        <a href="formosa.html">formosa</a>
                    </li><li>
                        <a href="formosa.fields.html">formosa.fields</a>
                    </li><li class="active">
                        <a href="formosa.validators.html">formosa.validators</a>
                    </li>
                </ul>
            </div>
            <div class="browser-section">
                <h2>Methods</h2>
                <ul>
                    <li>
                        <a href="formosa.validators.Unique.html#method-validate">validate</a>
                    </li>
                </ul>
            </div>
            <div class="browser-section">
                <h2>Attributes</h2>
                <ul>
                    <li>
                        <a href="formosa.validators.Unique.html#attribute-"></a>
                    </li>
                </ul>
            </div>
        </div>
        <div id="content">
    <h1>Class: Unique</h1>
    <div class="docstring rst"><p>Validator to assert that a set of values are unique to a corresponding
set of SQLAlchemy model properties.</p>
</div>
    <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
</ul>
    <div>
        <h2>Methods</h2>
            <h3 id="method-validate">
                validate
                <span class="args">(self, subject)</span>
            </h3>
            <div class="docstring rst"><p>Raise <tt class="docutils literal"><span class="pre">ValidationError</span></tt> if one or more objects is found with the
values in <tt class="docutils literal"><span class="pre">subject</span></tt> as indicated by <tt class="docutils literal"><span class="pre">propkeys</span></tt>, unless only one
object is found and it is the same as the object specified by
<tt class="docutils literal"><span class="pre">inst</span></tt>.  Skip validation if any of the specified values from
<tt class="docutils literal"><span class="pre">subject</span></tt> (i.e. those specified by the values in <tt class="docutils literal"><span class="pre">propkeys</span></tt>) is
either missing or <tt class="docutils literal"><span class="pre">None</span></tt>.</p>
</div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
</ul>
    </div>
    <div>
        <h2>Attributes</h2>
            <h3 id="attribute-"></h3>
            <div class="docstring rst"></div>
            <h4>Value of </h4>
            <pre class="code"><code>None</code></pre>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
</ul>
    </div>
        </div>
        <div id="footer">
            Generated with <a href="http://apydia.ematia.de/" class="extern">
            Apydia 0.0.2</a> on 2008-11-26 11:09
        </div>
    </div>
</body>
</html>